<template>
  <div class="top">
    <div>
      <van-icon name="arrow-left" @click="back()"/>
      <slot></slot>
      <div>
        <van-icon name="ellipsis" />
        <van-icon name="cross" @click="back()"/>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods:{
    back(){
      this.$router.go(-1)
    }
  }

}
</script>

<style lang="scss" scoped>
  .top {
    width: 100%;
    height: .8rem;
    // background: #999;
    position: relative;
    background: #fff;
    >div {
      width: 90%;
      display: flex;
      justify-content: space-between;
      position: absolute;
      bottom: .1rem;
      left: 5%;
      >div {
        width: .5rem;
        display: flex;
        justify-content: space-between;
      }
    }
  }


</style>